package com.action;

import com.service.IHelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestAction {

    @DubboReference
    private IHelloService helloService;

    @RequestMapping("/test")
    public String test(){
        int sum = helloService.add(2,3);
        return sum+"";
    }
}
